home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex27.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  195 b   |  11 lines

  1. Program Example27;
  2.  
  3. { Program to demonstrate the Frac function. }
  4.  
  5. Var R : Real;
  6.  
  7. begin
  8.   Writeln (Frac (123.456):0:3);  { Prints  O.456 }
  9.   Writeln (Frac (-123.456):0:3); { Prints -O.456 }
  10. end.
  11.